package com.film.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.film.domain.Admin;

public class AdminRowMapper implements RowMapper<Admin>{

	@Override
	public Admin mapRow(ResultSet res, int arg1) throws SQLException {
		Admin admin =new Admin();
		admin.setAdminId(res.getInt("admin_id"));
		admin.setAdminName(res.getString("admin_name"));
		admin.setAdminPassword(res.getString("admin_password"));
		return admin;
	}

}
